// import 'package:cotton_candy/components/infinity_page_view.dart';
import 'package:cotton_candy/components/login_verifier.dart';
import 'package:cotton_candy/screens/chat_screen.dart';
import 'package:cotton_candy/screens/home_screen.dart';
// import 'package:cotton_candy/screens/find.dart';
// import 'package:cotton_candy/screens/me.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Routes {
  static Map<String, WidgetBuilder> routes = {
    '/': (BuildContext context) {
      // final screens = [
      //   ChatScreen(),
      //   MeScreen(),
      //   FindScreen(),
      // ];
      return LoginVerifier(Scaffold(
        backgroundColor: Color.fromARGB(255, 250, 250, 250),
        resizeToAvoidBottomPadding: false, //软盘弹出不影响布局
        body: HomeScreen(),
      ));
    },
    '/chat': (_) {
      return LoginVerifier(Scaffold(
        body: ChatScreen(),
      ));
    }
  };
}
